package com.example.springboot;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "datasoure")
@Data
public class Mydatasoure {
    private String driver;
    private String url;
    private String username;
    private String password;

    @Override
    public String toString() {
        return "Mydatasoure{" +
                "driver='" + driver + '\'' +
                ", url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }


}
